package com.hjm.common.core.constants;

/**
 * 缓存常量信息
 *
 */
public class CacheConstants
{
    /**
     * 缓存有效期，默认720（分钟）
     */
    public final static long EXPIRATION = 720;

    /**
     * 缓存刷新时间，默认120（分钟）
     */
    public final static long REFRESH_TIME = 120;


    /**
     * 权限缓存前缀
     */
    public final static String LOGIN_TOKEN_KEY = "login_tokens:";




    /**
     * 手机验证码相关
     */
    public static final String PHONE_CODE_KEY = "t:a:";//短信验证码
    public static final String PHONE_CODE_TIMES_KEY = "t:l:";//短信发送次数


    /**
     * 竞赛
     */
    public final static String EXAM_DETAIL = "e:d:";    //竞赛详情信息
    public final static String EXAM_NOT_STARTED_LIST = "e:t:l"; //未开始竞赛列表
    public final static String EXAM_HISTORY_LIST = "e:h:l"; //历史竞赛列表
    public final static String EXAM_QUESTION_LIST = "e:q:l:"; //竞赛题目列表

    public final static String EXAM_RANK_LIST = "e:r:l:";  //竞赛排行榜列表


    /**
     * 用户
     */
    public final static String USER_EXAM_LIST = "u:e:l:"; //用户个人竞赛列表
    public final static String USER_KEY  = "u:d:";             //用户 标识
    public final static String USER_UPLOAD_TIMES_KEY = "u:t:"; //用户文件上传次数

    /**
     * 题目
     */
    public final static String QUESTION_DETAIL = "q:d";  //  题目详情

    public final static String QUESTION_LIST = "q:l";    //  题目列表


    /**
     * 消息信息
     */
    public final static String MESSAGE_DETAIL = "m:d:";          //消息详情信息

    public final static String USER_MESSAGE_LIST = "u:m:l:";    //用户消息列表
}
